package com.dnjn.mes.biz.service;

import com.dnjn.mes.biz.domain.MesRecordStatus;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;

/**
 * <p>
 * 状态表 仅记录有变化时的状态 服务类
 * </p>
 *
 * @author Amber
 * @since 2023-07-28
 */
public interface IMesRecordStatusService extends IService<MesRecordStatus> {

    boolean addStatus(String status, Long equipmentId, LocalDateTime now);

    MesRecordStatus lastRecordStatus(String status);
}
